package workflow.core;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import workflow.dto.WorkflowMessage;

public class WorkflowElement  implements Serializable{

	public void setName(String name) {
		this.name = name;
	}

	/** unikalna nazwa elementu */
	protected String name;

	/** wiadomosc wejsciowa */
	protected List<WorkflowMessage> inMessages;

	/** wiadomosc wyjsciowa */
	protected List<WorkflowMessage> outMessages;

	/** mapa z parametrami konfiguracyjnymi elementu */
	protected Map<String, String> params;
	
	
	public WorkflowElement() {
		this.outMessages = new ArrayList<WorkflowMessage>();
	}
	
	public WorkflowElement(String name) {
		this.outMessages = new ArrayList<WorkflowMessage>();
		this.name = name;
	}

	public List<WorkflowMessage> getInMessages() {
		return inMessages;
	}

	public void setInMessages(List<WorkflowMessage> inMessages) {
		this.inMessages = inMessages;
	}

	public List<WorkflowMessage> getOutMessages() {
		return outMessages;
	}

	public void setOutMessages(List<WorkflowMessage> outMessages) {
		this.outMessages = outMessages;
	}

	public Map<String, String> getParams() {
		return params;
	}

	public void setParams(Map<String, String> params) {
		this.params = params;
	}

	public String getName() {
		return name;
	}

}
